Yes, it is returning a string representation of A_n, so for A_3, it returns su(4), which is why I have it capitalised.