strtoupper
trim
explode
先頭と末尾の空白(または指定した文字)を削除します。
trim(string $string, string $characters = ' \n\r\t\v\x00'): string