fully working whitespace remover