Replace any white space with new line check