Solution

if ( [string length] ]]> 0 )

{

    string = [string substringToIndex:[string length] - 1];

}