Changed parameter name from stringToBeKey to rawKey