adding string helper and array helper functions