ast: Split off new astAppendString stuff to a new routine
kappa: Use new astAppendStringf instead of astAppendString