Slightly more robust mol parser