raw_text = " Order #49281 Confirmed! "# Cleaning and extracting:
cleaned = raw_text.strip() # "Order #49281 Confirmed!"
is_order = cleaned.startswith("Order #")
order_id = cleaned.split("#")[1].split()[0] # "49281"
# Formatting with f-strings:
env = "staging"
login_url = f"https://{env}.targetqa.com/login"