Use substitute() instead of QString conversion