Add dynamic versions of substring