Refactor replace task again
Remove sed part