Ignore string characters if no need to capture them