refactor TailArray and TailBuilder to reduce count of char[] instance.