Fixed default values for mid() and remove()