use tr to remove \r\n

bug fixed