substringing wG