Refactor string functions, fix many defects.

Again ola:: or using.