A Flexible String Generator