added verification for null or empty string in Rigth extension.