Strip text properties from the completion prefix