Inside converse() want to change the utterance and return false

if user utters random phrase and ends with “stop car”, e.g. “I want food. stop car” i want to replace the user utterance with only “stop car”

How do i replace it in the converse()