Variables set to strings work the same way. Try setting name to name + " John".
name
name + " John"
Make sure to type name.