var surname = String.tolower("Smith")
var firstName = String.tolower(String.mid("Mr James Smith",4,5))
Note:
In the first example above the variable surname will contain the value "smith". In the second example, two string functions have been combined, the variable firstName will contain the value "james".