Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTony Brackins
28,766 PointsBug: I put a capital letter in the word I'm having people guess, and it doesn't recognize it.
Bug: I put a capital letter in the word I'm having people guess, and it doesn't recognize it.
2 Answers
Greg Kaleka
39,021 PointsYou didn't offer much detail, but if you have a capital letter and people are guessing a lowercase letter, that's not a bug - those are two different strings! You can use a string function to convert user input to all lowercase, and check against an all lowercase string.
MyMixedCaseString.toLowerCase()
Tony Brackins
28,766 PointsSorry about that, this is when sending arguments to the Command line during the "Delivering the MVP" project. If it has a capital, it won't read the letter.