Circular string matching revisited