remove alternative (char "|") that does not exist in lua