Refactoring: used StringBuilder for parsing <a> tag