Fix string width calculation