externalizing require and string-replace