Modified string param check for mongoid