Fixed the string comparison issue in TypedValue