Get Substring From String In Angularjs