Factor out constant strings