I'd have to implement special cases for beginning and end of the string anyway - right now there's a newline at start and end, which must be trimmed, but is not necessarily there (as far as I coud understand the .tmx format spec).