Calculates MD5 checksum of a string