Added 'use strict', replaced \d in regexp with [0-9]