Ad
  • Custom User Avatar

    Thank you for your reply. I still don't understand how the trim could be causing this behaviour. I have a string as a result, which is put out in my first set of translations. As you can see, all is correctly translated, except that i produce an additional whitespace at the end. Now i take this exact result string and call trim(), as the very last operation. How could this mess up the whole result in that way? I'm not sure what i am missing.
    This line in decodeMorse(..)
    "return result.toString();"
    was changed to this
    "return result.toString().trim();"

  • Custom User Avatar

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