I am trying to clean up a name to make it suitable for use as a Service Definition Package name. I found myself doing this sort of string cleanup a lot. I wonder if there is a ready-to-use arcpy function that allows us to pass in any string, and it returns a string that is acceptable as a name for service definition for publishing?