del \n\r at end of str