Added constants. Added validation fuctions to string_functions.php