Fixed getText and getMainText methods