string replace ' ' with '_' code example Example: python replace string string.replace(old, new, count)