How To Define A Python Function That Will Make A String Conform To

How To Define A Python Function That Will Make A String Conform To