remove random characters from hashed key