Code JavaScript:
<script type="text/javascript">
document.getElementById('collapse').innerHTML = 'Collapse all';
document.getElementById('expand').innerHTML = 'Expand all';
document.getElementById('bar').innerHTML = '|';
</script>

Thanks