Make substrings method return only unique substrings

Throwing on a call to Array.uniq to ensure substrings method
returns a unique set of substrings.

ex: hello => l, l ==> l
ex2: remember => r, e, em, e, em, e, r ==> r, e, em