tryExpect

fun tryExpect(str: String, consume: Boolean = true): Boolean