export default function (string) { return string .replace(/[\t\r\n]/g, ' ') .replace(/ +/g, ' ') .replace(/^ /, '') .replace(/ $/, ''); }