Use String.indexOf() to check for percent