Move espaceRegExp function in utils.