adding function to remove trailing spaces
added mapping for timestamp and note block
better way of inserting note block