updated title maker to allow leading and trailing text