function. Constify mycmdstr() arguments. Removed trailing whitespaces. No functional changes expected by this commit.