Substring returned buffer