WordPress Coding Standards optimizations.
Some small improvments.
Added string length check.