set sequence and pattern to lowercase