String comparisons in mysql are normally case-insensitive.
You could manipulate the data using your server-side scripting language and saved it as a variable. Then make the comparison in your select statement using that variable.
Otherwise, if you know the result you want to match the input to, you could use the REGEXP function. eg.
select * from pet where name
REGEXP "[w]";
This would find the names that would contain w in lowercase only.
Hope this helps...