Fixed #\tab issue(at start, at end, considered empty line)

Added test cases for next step(the empty line issue)