Fix nullification of whitespace-only strings and add a --limit option