Imported text often includes spaces or inconsistent capitalization. Chaining method calls passes each result to the next method.
utterance = " GOOD Morning! "
clean = utterance.strip()
print(clean.lower()) # good morning!
print(clean) # GOOD Morning!strip and lower each produce new text. The title method similarly makes a new string, capitalizing each word.
Keep the original raw_name. Set badge_name to the stripped name with an initial capital on each word.