Find the position where the string is not well formed