handle multiple '|' chars in log message. Use indexOf instead of split.