Finished array debugging with given test_cases, need to fix a mem leak in both list and array for err in remove_whitespace().