repeating character pattern