add trancate_text method