Generate MD5 hash from string