Move no_whitespace as class method