Entries were being added to the prompt in an inconsistent way. WI
before and after character were using newline formatting while AN
was using array joins. This caused some issues with insertion order
in the prompt.
Fix this by making each injection use an array and unshift elements
into them. Then, join them into a string that preserves insertion
order.
The reason why unshift is used is because higher insertion orders
translate to a higher priority during scanning. This prevents the
need to reverse arrays which is a more costly function depending
on how many entries are in them.
Signed-off-by: kingbri <bdashore3@proton.me>