Finished basic WHERE token replacement.