finished some text helper functions.