Change .contains("leave") to .startsWith("/leave")