making parse_ls_string() a private method