how to replace undefined with a empty string how to replace undefined with a empty string angularjs angularjs