added bang to replace string literals method, swapped order of ; and \n in split regex for readability