redactHomeDirectory = (s) => {
  if (undefinedOrNull(s)) {
    return '';
  }

  return (
    s?.toString()?.replaceAll(new RegExp(PATHS.homeDir, 'ig'), '/Users/user') ??
    ''
  );
}
Description - Strip user home directory path from the error before it is sent to sentry
@param s
@return {string|string}