I am trying to create an array to hold a String value. ...
Can someone tell me what I might be doing wrong?
Why are you trying to create an array to hold a string in the first place? But to answer your question, not without seeing the code that generates the error.