removing the last of the whitespace