Fixed InputStream; implemented in RegExpFunc with constructor.