Improved sed command