working with strings and arrays