Switched from strip() to rstrip().