The inputs are now trimmed before conversion. The TODO items are updated for possible correct formats.