Refactor string functions, fix many defects.

ola:: or using.