Removing duplicate strings, thanks to @infograf768