Worked on text functions