Allow to pass other things that string in args

Currently passing an array in the configuration will throw an error as we try to do substr on it