trim argument of l2addressForDatabase() (#1215)