Refactored text helper and added textarea helper