Fixes to get working on Windows.
Deal with empty strings, remove print.