Added minimum string length check(3), errno added on select