Improve ANSIString performance.