Fix functionaltests_trailingspace

This tries to fix #72.

I don't know what is broken here...if test is broken or code is broken.

I have fixed the test :)

Let me know if code is broken and I will try to fix the  code instead of the test.

Thanks!