Define characters in a string

I want to be able to reserve 2 or more characters in a string. For example:

let string = "  "
string.unknownMethod("a")

What function do I need in place of unknown method to get this output " a". But if string.unknownMethod("ab") the output should be "ab"