add new function, now can check only multiple space and newline