fixed print statements and title regex