Add check for empty string in SafeUcFirst.