Removed String.isEmpty() methods due to API incompatibility.