Utility method to measure the width of a string.
Authored by: josefjordan 2018-06-27
Parent: [r297]
Child: [r299]