Changed char[] to string, s.t. dictionary will work
Solved problem by changing char[] to string