Using string instead of char[] for Word class