Humm...two options I can think of at the moment. First, make the string all upper case if that's the way you need it, strtoupper(). Or, take out the spaces before checking the string. Ex:
$string_no_spaces = str_replace(' ', '', $string);
if (ctype_upper($string_no_spaces)) {
// Is all upper case.
} else {
// NOT all upper case.
}