Remove unneeded check. Check and remove newlines