diff --git a/preparemoodle.sh b/preparemoodle.sh
index e7d944cd3d9c0728bbaf016885af7fd664285c72..60645e70d454e5e4e1244e20095dc1f987a0d493 100755
--- a/preparemoodle.sh
+++ b/preparemoodle.sh
@@ -164,7 +164,7 @@ echo -ne "Start iterating..."
         # parse the required fields from the csv file
         id=$(echo $line | awk -F',' '{printf "%s", $1}' | tr -d '"')
         id="${id/"Teilnehmer/in"/}"  # remove "Teilnehmer/in" to get the assignment id
-        id="${id/"Participant"/}"  # do the same for "Participant"
+        id="${id/"Participant "/}"  # do the same for "Participant"
 
          # remove quotation marks from content
         lastname=$(echo $line | awk -F',' '{printf "%s", $2}' | tr -d '"')