Removed some unused nodes
Fixed bug substr
Fixed line number bug

If we replace original file with newCode each time, line numbers move
because oldCode and newCode are not the same length.
Added test329