Added more YII_ENV constants.
enhanced the usage of StringValidator.