s_lines = 'one two three' print(s_lines) # one # two # three print(s_lines.replace(' ', '-')) # one-two-three