Compare equality of two strings while ignoring CASE and extra whitespace.

string:is_similar?(STRING $string1, STRING $string2) : BOOL

string:is_similar?('0', '00')
#=> FALSE

string:is_similar?('a','A')
#=> TRUE

string:is_similar?('a','A ')
#=> TRUE

string:is_similar?(' A ', '     a')
#=> TRUE

string:is_similar?(' foo    bar','foo Bar')
#=> TRUE

string:is_similar?(' foo    bar','fooBar')
#=> FALSE

string:is_similar?(' foo    bar','foo')
#=> FALSE

Copyright ©2013-2022 SunSed®. All rights reserved.