datErase: Normalize string and improve error handling