Modified string comparison to support PCL/Mono