Given a matrix suspected to contain whitespaces, this function removes all the whitespaces and returns a cleaned data. <U+2019>Whitespaces<U+2019> are white characters often introduced into data during data entry, for instance by wrongly pressing the spacebar. For example, neither " A" nor "A " equates "A" because of the whitespaces that exist in them. They can also result from systematic errors in data recording devices.