The string that getKeyString returns has to be used here. And leave the buffer unchanged if the specified data key was not found