`a` isn't a good name, I'd go with either `unique_characters` (it's fine to have a local var with the same name as its method), or `to_return`

Also, this can be done with `word.chars.uniq`