added optional pattern to keywords method; added "use strict"