lower and uppercase check went wrong