Modified regex to literals

Made regex an array of literals for a speed increase.