translate and trim new line, etc. To remove bugs cause by new line