Updated wordFitsTemplate to use foldl.