Use sed instead of replace