Fixed crashing when input sequence has lower case characters