Changed framework to use String object instead of char[] to make it work better with accepting input.