correctly stip \n\r

strip -> rstrip