for the characters limit in details.php find: if ($comment_text == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['comment_required'];
$error = 1;
}
insert below: if (strlen($comment_text) > 255)
{
$lang['comment_too_long'] = "Comment is too long";
$msg .= (($msg != "") ? "<br />" : "").$lang['comment_too_long'];
$error = 1;
}
Replace 255 with the number you want. (you can move $lang['comment_too_long'] = "Comment is too long"; into lang/<your language>/main.php )
For the white spaces issue, you can try insert above the code I've mentioned this line: $comment_text = preg_replace("#(\s){5,}#m", "\\1", $comment_text);
it will replace any repeated 5 times white spaces (space, newlines) with one white space.