Pass correct param and convert string into hash