Added method to append color after every \n