Used direct type comparison instead of converting the item type to string then comparing it with a hard coded string.