usually for repeating string problems use char[] or hash