This intention replaces call like s.substring(0, s.length - x) with s.dropLast(x) call.