Messed with splitting strings to use regex as opposed to string literals.