Fixed missing whitespace and incorrect method placement
Adjusted new tag detection algorithm for part 2