bug removal in whitespace remove