Updated documentation comment
Added test for whitespace trimming