Add strip() method to skip new line at the end of html