Update config.py

fix check for string object