Fix the bug. When juding the delimiter, check the length first.