minor cleanups to String code - intended to speedup but didnt help
performance numbers tweaked for tests