Added the new line check