fcn repString(s){ foreach n in ([s.len()/2..0,-1]){ if(s.matches(s[n,*] + "*") and n*2<=s.len()) return(n); } return(False) }