Go back and re-edit your post to use code tags. The code you posted is unformatted and almost unreadable wihtout code tags.

You have three strings, strCtn, str, and strTemp. Which one are you...