Converting keywords from string to array