Added trim to redirect target.