string untility method