Another way if A and B are symbols representing strings:
Text[A<>"\n"<>B]
One more way:
Text["A\nB"]
Yoou can simply use Column:
Column
Text[Column[{A,B}]]