Solution to trailing whitespace