Custom test cases trailing white space

In custom test cases (in Java, haven’t tested other languages) it will kill off the excess white space at the end of the input box.
So in the Manhattan ASCII problem, where the last character shown is “?” the bottom row (end of the last line) should be " # "
But instead it shows up as " #" and that breaks the test case. I made a temporary work around just by adding a . to the end, but I feel this should be remedied if possible.

The output box however does not remove excess white space, leading me to believe that the input box shouldn’t either.