stip un-needed whitespace