Use sed instead of variable substitution