parsing chars
added onemore(longest) with bags...