Ad
  • Custom User Avatar

    This solution is based on the length of the resulting string, so replacing with spaces won't change the length of the initial string because space is still counts towards the length as 1 character, while you want to get the length of the string consisting only from remaining chars.

  • Default User Avatar

    I did the same thing but I replaced it with the space instead of ''. Can someone explain me please why my version didn't work (it sometimes had more numbers) but this one does? If in the description it's told that there should be spaces :/