cleaning trailing whitespace
adding tests
trimming all trailing whitespace