fixed fails in removewhitespace