parsing data to use strip method in command line