var surname = String.toupper("Smith")
var firstName = String.toupper(String.mid("Mr James Smith",4,5))
Note:
The Return Value in the first example above would be "SMITH". Therefore, the variable surname will contain the value "SMITH". In the second example, two string functions have been combined, the Return Value for the toupper function will be "JAMES". Therefore, the variable firstName will contain the value "JAMES".