fata_to_md5 updated by Manfred to cope with unexpected whitespace