Check for string initialization in ucfirst() to make HHVM 3.18 happy