Add implementation of getText that was forgotten