Changed the order of some is_string tests to fix illegal isset types