Fixed the param comparison for public. Compare with string instead.