Handle man commands and spaces correctly