some string util functions added.