Changed regex-based stripping to indexOf semicolon