changed hash code to string.hashcode()