public static String cutOffSingleQuotes ( String variable ) { if ( StringUtils . hasText ( variable ) && variable . length ( ) > 1 && variable . charAt ( 0 ) == ' ' && variable . charAt ( variable . length ( ) - 1 ) == ' ' ) { return variable . substring ( 1 , variable . length ( ) - 1 ) ; } return variable ; }
Cut off single quotes prefix and suffix .