TRIM() wrong behavior or misunderstanding?