Fix minor typos in elementText sample code