common.php

edit function trim_separator
switch has to case named "both" 
last case should named 'right'
coder forgot that ^^