Added trimStringToRenderWidth to CSString