Avoids exception when putting just spaces as command