Remove redundant else.
Fixed casing of error strings.