added string helper
bugs fixed