Here we used the strip function which is implemented in c language.