Added imperative data structure for handling large strings