trimmed the trailing spaces at the end of the edit.php