adding string frequency