String Index Out Of Bounds Exception

Hi,

I tried this and the problem still exists.
But I have taken your advice and moved the line to setup.

I have replaced the controlp5 textArea with text() in processing and it is working for me except for the scrolling functionality that controlp5 gives.
It will work for me for now.