Use util method to check for newline instead of explicit search