Replaces 'invalid' with 'notValid'