Change the way to calc text width

The formula to calculate text width is problematic if text is in upper case. So, why not to use a universal way to get the text width. :)