better parsing of config string to int/real