Addition: Okay, two triggers may create another problem, so you can simply calculate if the character is at the start or at the end: