correct issue with empty string error raising logic being reversed
add strict_mode documentation