substr handlebar safe string