This intention replaces call like s.substring(0, s.indexOf(x)) with s.substringBefore(x) call.