imsm: remove redundant characters from some error messages