Refactor string functions, fix many defects.

Does it want the private comment like OLA_ASSERT_VECTOR_EQ has?