You are given a string composed of English letters, punctuation marks, and spaces. Your task is to eliminate any consecutive repeated characters, replacing them with a single instance of that character.
A single string containing English letters, punctuation marks, and spaces.
Answer to the task.
Example 1