if name has regex replace it wqith space python code example Example: space to underscore python mystring.replace(" ", "_")