a <- "2010May10"
How can I take only "Mar" from a?
Probably some kind of command like string(a, 5:7) might be candidate.