New test for questions having trailing whitespace

Adding a new test for questions containing trailing whitespaces.

Updated the example implementation to pass the new test