Check argument for being a string in NewKey