rstrip not needed before type casting string to int