method for string manipulation added