clean_data_path function

Clean the data path