var name = "Mr James Smith"var firstName = String.mid(name,4,5)
Note:The Return Value in the example above would be "James". Therefore, the variable firstName will contain the value "James".