user sequence input analysis and upper-case fix