This could use more comments. What is this for? Seems all it's doing is getting the hash of the string, with null check.