Substring on large query string.