Update Text.php

This is my first proposal in github, so i just write down a little change. I have added the mb_strlen instead of strlen so that this function can handle utf-8 character length properly.