Added method to get String width