Fixed some typos
Corrected command substitution