fixed bugs in remove_whitespace() ~Brett