Progressed getting the regex for trimGarbage() right.