determine STR number automatically

helper script for making config file