fixing robot matching, need to trim spaces