String.insert: fix the error message and indentation