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.