Handle more edge cases and added tests for #77 (Prevent error when new rows have leading white space)