add str_replace to replace '\r\n' with just '\n'