Fix reading first char from buffer
Mark unused code blocks
Found routine that normalizes input to uppercase