Fix loading from Config. thanks to Sander for pointing out that .length also exists for strings.