Seems like there should be a utility function for doing this lenient formatting. Then you'd just have

`phone_number = format_phone_number(msg.phone_number)`