String distance functions for R
