Python String Trim Specific Learning