is not  the trim() function needed here?