Fixed GetTextWidth from returning incorrect values when the last character is blank