sinatra helper app for generating strings with specific characteristics