fixed #45 modified category condition to check case insensitive