rstrip is your friend