Add missing methods for -np support (sub/gsub)