Ad
  • Custom User Avatar

    Thank you very much, now that I can try and fix. I'll be amending my post to spoiler in the meantime.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I can only imagine the reason being the way Java is converting the hyphen char to an int. If that's assuming a value of -1 for the -, it would be adding a 1 to the beginning of your returned string.