Accept a string or an object as argument.