Loosen check for trailing \n