Added debug log. Removed empty lines when connecting string to text.