Added implementation for getSubstrings(). 10.16.13	20:24