Thanks that works! Do you know why I was getting such odd results with preserve case on? Also, what does preserve case specifically does? The case is still preserved with it off so i'm not sure what effect it has.

No, I actually have no idea how it works... I think it's mostly for when you do a case-insensitive find+replace, so if you search for foo and replace with bar, it'll change foo to bar and Foo to Bar or something.