I had problems because I hadn't declared size of array inString before