Properly checks for strings