fix string util implementation