Transform a map by injection over keys and function over values
StringUtils.ToLength function