Remove a space at the beginning and end of a line or replace a double space with a single space Qt Creator trimmed