More enhancements to the autokey generation, now supports format strings