Guard against signal handlers that are not code, and try to evaluate signal handlers that are strings containing a subroutine. Strip trailing blanks