Ending a sentence with a preposition
It is not always wrong to end a sentence with a preposition. At times, the preposition need to be at the end of a sentence, especially when the alternative of not ending with a preposition causes confusion or affects the meaning of the sentence. However, it should be avoided whenever it is possible to rewrite the sentence in order to convey a clear meaning.
The following sentences ending with a preposition are acceptable
The following sentences ending in a preposition are acceptable but can be avoided