Is there a built in way with jQuery to \"title case\" a string? So given something like bob smith, it turns into \"Bob Smith\"?
Use inbuilt camelcase method in jquery:
$.camelCase($("#text").html());