How to use the SubStringGen