How to get the rest of the string at the end of a "string"

IDK if you understand me, but this is what I mean:

/name funnyfunns Funny Funns

so you get the rest of the sentence at the end

no, it was just and example, i dont want their name to be changed